const auditList = [
  {
    id: 0,
    name: '未审核',
    color: 'gray'
  },
  {
    id: 1,
    name: '审核通过',
    color: 'green'
  },
  {
    id: 2,
    name: '审核未通过',
    color: 'red'
  },
]

// 物流状态
const expressStatusList = [
  {
    id: 0,
    name: '暂无'
  },
  {
    id: 1,
    name: '下单'
  }
]

const getTagName = (id, prop = 'name') => {
    const result = auditList.find(item => item.id === id)
    return result ? result[prop] : ''
}

const getExpressStatusName = (id) => {
    const result = expressStatusList.find(item => item.id === id)
    return result ? result.name : ''
}

export {
  auditList,
  getTagName,
  getExpressStatusName
}
